<template>
    <div class="detail">
        <span class="goback" @click="$emit('changeImgShow')">返回</span>
        <img :src="require('@/assets'+item.pic)"/>
        <div class="black">
            <div>{{item.hotelName}}</div>
            <div>{{item.address}}</div>
        </div>
    </div>
</template>
<script>
export default {
    data(){
        return{
           
        }
    },
    props:['item','changeImgShow'],
 
}
</script>
<style scoped>
.detail{
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 100;
    top:0;
    left: 0;
    overflow: hidden;
}
img{
   height: 100%
}
.goback{
    color: #fff;
    font-size: 14px;
    position: absolute;
    top: 30px;
    left: 5%;
    z-index: 101;
}
.black{
    width: 90%;
    height: 200px;
    margin: 0 5%;
    background: rgba(0,0,0,.6);
    position: absolute;
    bottom: 30px;
    z-index: 101;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-sizing: border-box;
}
</style>